package com.lzycug.provider.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/provider")
public class ProviderController {
    @Value("${spring.profiles.active}")
    private String profile;

    @GetMapping("/info")
    public String getProviderInfo() {
        System.out.println("I'm server: " + profile);
        return "I'm server: " + profile;
    }
}
